package Merlion.util.state;

import java.util.Date;
import java.util.List;

public class MessageState {

    private Long id;
    private String senderId;
    private List<String> receiverId;
    private Date dateCreated;
    private Date dateRead;
    private String title;
    private String body;
    private boolean received;
    private boolean readByUser;
    private String deleteFlag;
    private String starred;

    public MessageState(Long id, String senderId, List<String> receiverId, Date dateCreated,
            String title, String body, boolean received, boolean starred) {
        this.setId(id);
        this.setSenderId(senderId);
        this.setReceiverId(receiverId);
        this.setDateCreated(dateCreated);
        this.setTitle(title);
        this.setBody(body);
        this.setReceived(received);
        this.setStarred("N");
        this.setDeleteFlag("N");
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    public Date getDateRead() {
        return dateRead;
    }

    public void setDateRead(Date dateRead) {
        this.dateRead = dateRead;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public boolean isReadByUser() {
        return readByUser;
    }

    public void setReadByUser(boolean readByUser) {
        this.readByUser = readByUser;
    }

    public boolean isReceived() {
        return received;
    }

    public void setReceived(boolean received) {
        this.received = received;
    }

    public List<String> getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(List<String> receiverId) {
        this.receiverId = receiverId;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getStarred() {
        return starred;
    }

    public void setStarred(String starred) {
        this.starred = starred;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
